package vn.hocweb.entity;

import java.sql.Date;
import java.util.ArrayList;
import java.util.List;

public class BaiViet extends Entity{
	private long maBaiViet;
	
	private NguoiDung nguoiCapNhat;
	private Trang trang;
	
	private Date ngayCapNhat;
	private String ten;
	private String moTa;
	private String noiDung;
		
	private List<ViDu> danhSach_ViDu;

	public BaiViet(int thuTu, boolean noiBat, boolean hienThi, long maBaiViet,
			String nguoiCapNhat, long maTrang, Date ngayCapNhat, String ten,
			String moTa, String noiDung) {
		super(thuTu, noiBat, hienThi);
		this.maBaiViet = maBaiViet;
		this.nguoiCapNhat = new NguoiDung(nguoiCapNhat);
		this.trang = new Trang(maTrang);
		this.ngayCapNhat = ngayCapNhat;
		this.ten = ten;
		this.moTa = moTa;
		this.noiDung = noiDung;
		this.danhSach_ViDu = new ArrayList<ViDu>();
	}
	
	public BaiViet(long maBaiViet) {
		super();
		this.maBaiViet = maBaiViet;
	}

	public long getMaBaiViet() {
		return maBaiViet;
	}

	public void setMaBaiViet(long maBaiViet) {
		this.maBaiViet = maBaiViet;
	}

	public NguoiDung getNguoiCapNhat() {
		return nguoiCapNhat;
	}

	public void setNguoiCapNhat(NguoiDung nguoiCapNhat) {
		this.nguoiCapNhat = nguoiCapNhat;
	}

	public Trang getTrang() {
		return trang;
	}

	public void setTrang(Trang trang) {
		this.trang = trang;
	}

	public Date getNgayCapNhat() {
		return ngayCapNhat;
	}

	public void setNgayCapNhat(Date ngayCapNhat) {
		this.ngayCapNhat = ngayCapNhat;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	public String getMoTa() {
		return moTa;
	}

	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}

	public String getNoiDung() {
		return noiDung;
	}

	public void setNoiDung(String noiDung) {
		this.noiDung = noiDung;
	}

	public List<ViDu> getDanhSach_ViDu() {
		return danhSach_ViDu;
	}

	public void setDanhSach_ViDu(List<ViDu> danhSach_ViDu) {
		this.danhSach_ViDu = danhSach_ViDu;
	}
	
}
